import ajax from './index'
// 含大区行政区域树列表

export function partnerTreeList(condition) {
    return ajax({
      url: '/partnerRegion/treeList',
      method: 'GET',
      data: condition
    });
  }
// 合伙人表分页列表
export function partnerPageList(condition) {
    return ajax({
      url: '/partner/pageList',
      method: 'GET',
      data: condition
    });
  }
// 更新合伙人表
export function partnerUpdate(condition) {
    return ajax({
      url: '/partner/update',
      method: 'POST',
      data: condition
    });
  }
// 新增合伙人表
export function partnerAdd(obj) {
    return ajax({
      url: '/partner/add',
      method: 'POST',
      data: obj
    });
  }
// 详情
export function partnerDetail(condition) {
    return ajax({
      url: `/partner/detail/${condition.id}`,
      method: 'GET',
      data: condition
    });
  }
// 删除合伙人表
export function partnerDelete(obj) {
    return ajax({
      url: `/partner/delete/${obj.ids}`,
      method: 'GET',
      data: obj
    });
  }
// 合伙人区域统计信息
export function statistics(obj) {
    return ajax({
      url: `/partner/statistics/${abj.areaId}`,
      method: 'GET',
      data: obj
    });
  }
// 合伙人服务订单
export function storeServiceOrders(obj) {
  return ajax({
    url: `/backend/partner/data/storeServiceOrders`,
    method: 'GET',
    params: obj
  });
}